#include <stdio.h>


int main()
{
    long i;
    scanf("%ld",&i);
    dectobin(i);
   // printf("%d",i);
    return 0;
}
void dectobin(unsigned long int i)
{
    long r;
    r=i%2;
    if(i>=2)
    {
        i=i/2;
        dectobin(i);
    }
    putchar(r==0?'0':'1');
    return 0;
}
